package com.bilibili.service;

import com.bilibili.domain.entity.UserInfo;
import com.bilibili.domain.entity.Video;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * projectName:com.bilibili.service
 *
 * @author 飞
 * @create by 2024/6/1816:46
 * description:
 */
public interface ElasticSearchService {
    public void addVideo(Video video);

    public Video getVideo(String keyword);

    public void deleteAllVideos();

    public void addUserInfo(UserInfo userInfo);

    public List<Map<String, Object>> getContents(String keyword,Integer pageNo,Integer pageSize) throws IOException;

    void updateVideoViewCount(Long videoId);
}
